package com.kx.center.service;

import java.util.HashMap;
import java.util.List;

import com.kx.center.entity.Order;
import com.kx.center.entity.OrderDetail;
import com.kx.center.entity.query.QueryOrder;
import com.kx.center.entity.query.QueryResult;

public interface OrderService {
	public void insertOrder(Order entity);
	public void insertOrderDetail(OrderDetail entity);
	
	public void updateOrder(Order entity);
	public void updateOrderDetail(OrderDetail entity);
	
	public Order findOrderById(Integer orderId);
	public Order findOrderBySN(String sn);
	
	public List<Order> findOrderByStoreId(Integer storeId);
	public List<OrderDetail> findOrderDetailByOId(Integer oId);
	public OrderDetail findOrderDetail(Integer orderId, Integer goodsId);
	
	public void confirm(Order entity);
	public void saveOrder(Integer storeId, Order order, List<HashMap<String, Object>> json);
	
	public QueryResult queryOrder(QueryOrder query);
	
}
